<div th:fragment="frag(form)">
	<th:block th:with="meta=${form.app.object.data.get('meta')}">
		<section class="content pad" th:data-app-form="|${form.app.domprefix}-${form.app.id}-form|">
			<div class="row">
				<!-- left column -->
				<div class="col-md-12">
					<!-- general form elements -->
					<div class="box box-primary">
						<!-- /.box-header -->
						<!-- form start -->
						<form role="form" th:attr="enctype=${form.encType}">
							<div class="box-body">
								<th:block th:each="prop : ${form.properties}">
									<th:block th:include="${prop.url} :: frag(${prop})"></th:block>
								</th:block>
								<th:block th:each="btn : ${form.buttons}" th:if="${(form.readonly == 0 or btn.data.get('required') == '1') and btn.isVisible(form.formData)}">
									<th:block th:unless="${meta}" th:include="${btn.url} :: frag(${btn})"></th:block>
									<div class="btn-group" th:if="${meta}">
										<th:block th:include="${btn.url} :: frag(${btn})"></th:block>
										<button type="button" class="btn bg-black btn-sm dropdown-toggle" data-toggle="dropdown" style="height:28px">
											<span class="caret"></span>
											<span class="sr-only"></span>
										</button>
										<th:block th:include="meta/biz/button-dropdown :: frag(${btn.view}, ${btn})"></th:block>
									</div>
								</th:block>
								<th:block th:if="${meta}">
									<div class="btn-group" th:if="${meta}">
										<button type="button" class="btn bg-black btn-sm dropdown-toggle" data-toggle="dropdown" style="height:28px">
											<span>表单视图</span>
											<span class="caret"></span>
											<span class="sr-only"></span>
										</button>
										<th:block th:include="meta/biz/view-dropdown :: frag(${form})"></th:block>
									</div>
								</th:block>
							</div>
						</form>
						<th:block th:if="${meta}">
							<th:block th:include="meta/biz/modal-create-property :: frag(${form})"></th:block>
							<th:block th:include="meta/biz/modal-update-viewproperty :: frag(${form})"></th:block>
							<th:block th:include="meta/biz/modal-create-relation :: frag(${form})"></th:block>
							<th:block th:include="meta/biz/modal-create-dictionary :: frag(${form})"></th:block>
							<th:block th:include="meta/biz/modal-create-button :: frag(${form})"></th:block>
						</th:block>
					</div>
					<!-- /.box -->
				</div>
				<!--/.col (left) -->
			</div>
			<!-- /.row -->
		</section>
	</th:block>
</div>